package wiki.douzi.helpyougrow.domain;

import java.io.Serializable;

/**
 * (Cart)实体类
 *
 * @author Douzi
 * @since 2022-06-18 16:39:23
 */
public class Cart implements Serializable {
    private static final long serialVersionUID = 432050402883740986L;
    /**
     * 购物记录id
     */
    private Integer id;
    /**
     * 用户id
     */
    private Integer tUserId;
    /**
     * 商品id（商品和餐品id只能同时存在一种）
     */
    private Integer tGoodsId;
    /**
     * 购物车记录创建时间
     */
    private String createTime;
    /**
     * 购物车记录更新时间
     */
    private String updateTime;
    /**
     * 餐品id（商品和餐品id只能同时存在一种）
     */
    private Integer tFoodsId;

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", tUserId=" + tUserId +
                ", tGoodsId=" + tGoodsId +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", tFoodsId=" + tFoodsId +
                ", number=" + number +
                ", isSettle=" + isSettle +
                '}';
    }

    /**
     * 商品数量
     */
    private Integer number;
    /**
     * 是否已结算：1表示已结算，0表示未结算。若结算，则不能再对进行改变，且不能被购物车检索
     */
    private Integer isSettle;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTUserId() {
        return tUserId;
    }

    public void setTUserId(Integer tUserId) {
        this.tUserId = tUserId;
    }

    public Integer getTGoodsId() {
        return tGoodsId;
    }

    public void setTGoodsId(Integer tGoodsId) {
        this.tGoodsId = tGoodsId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getTFoodsId() {
        return tFoodsId;
    }

    public void setTFoodsId(Integer tFoodsId) {
        this.tFoodsId = tFoodsId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getIsSettle() {
        return isSettle;
    }

    public void setIsSettle(Integer isSettle) {
        this.isSettle = isSettle;
    }

}


